﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using KL.Store.Core.Domain;
using TN.Data;

namespace KL.Store.Data
{
    public class dbCargoRange
    {
        #region GetRangePrice

        public static CargoPrice GetRangePrice(int UserId, short CargoId, decimal Weight)
        {
            IList<CargoPrice> objectList = new List<CargoPrice>();
            SqlHelper.FillList(dbParameters.dsnStore, "SPR_ESTORE_Cargo_Range_Get_Price", objectList, new object[] { UserId, CargoId, Weight });
            return objectList.FirstOrDefault();
        }

        #endregion
    }
}
